﻿using System.Data;
using DAL;


namespace BLL
{
    public class BllOrder
    {
        #region[Get-Data]
        public DataTable GetOrder(string keywords)
        {
            return DalOrder.GetOrder(keywords);
        }
        public DataTable GetOrderDetailEdit(int Order_Id, int Flag)
        {
            return DalOrder.GetOrderDetailEdit(Order_Id, Flag);
        }
        public DataTable GetOrderDetailSum(int Order_Id, int Flag)
        {
            return DalOrder.GetOrderDetailSum(Order_Id, Flag);
        }
        public DataTable GetOrderDetailEditTmep(int Flag, int Users_Id)
        {
            return DalOrder.GetOrderDetailEditTmep(Flag, Users_Id);
        }
        public DataTable GetOrderDetailEditTmepSum(int Flag, int Users_Id)
        {
            return DalOrder.GetOrderDetailEditTmepSum(Flag, Users_Id);
        }
        public DataTable GetOrderActive(string keywords, int id)
        {
            return DalOrder.GetOrderActive(keywords, id);
        }
        public DataTable GetOrderFillterDate(string DateBegin, string DateEnd)
        {
            return DalOrder.GetOrderFillterDate(DateBegin, DateEnd);
        }
        public DataTable GetOrderFillterIsUsed(string keywords, int id)
        {
            return DalOrder.GetOrderFillterIsUsed(keywords, id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(EtOrder obj)
        {
            return DalOrder.Insert(obj);
        }
        public static bool Update(EtOrder obj)
        {
            return DalOrder.Update(obj);
        }
        public static bool Delete(EtOrder obj)
        {
            return DalOrder.Delete(obj);
        }
        public static bool InsertDetail(EtOrderDetail obj)
        {
            return DalOrder.InsertDetail(obj);
        }
        public static bool DeleteDetail(EtOrderDetail obj)
        {
            return DalOrder.DeleteDetail(obj);
        }
        public static bool UpdateQuanlity(EtOrderDetail obj)
        {
            return DalOrder.UpdateQuanlity(obj);
        }
        public static bool DeleteAdd(EtOrderDetail obj)
        {
            return DalOrder.DeleteAdd(obj);
        }
        public static bool GetOrderCheck(EtOrder obj)
        {
            return DalOrder.GetOrderCheck(obj);
        }
        public static bool GetOrderCheckReview(EtOrder obj)
        {
            return DalOrder.GetOrderCheckReview(obj);
        }
        #endregion

        #region[Review]
        public static bool Review(EtOrderDetail obj)
        {
            return DalOrder.Review(obj);
        }
        #endregion
    }
}
